# -*- coding=utf-8 -*-
def test():
    str = 'this is a message'
    print(str.capitalize())
    print(str.center(20,'#'))
    print(str.count('is'))
    print(str.endswith('age'))
    print(str.find('s'))






if __name__ == '__main__':
    test()
